package cn.iocoder.ny.module.mall.service;

import cn.iocoder.ny.module.mall.controller.admin.login.dto.WxLoginDTO;
import cn.iocoder.ny.module.mall.controller.admin.login.vo.WxRegisterVo;
import cn.iocoder.yudao.module.system.controller.admin.auth.vo.AuthLoginRespVO;
import org.dom4j.DocumentException;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface IMallLoginService {

    AuthLoginRespVO wxLogin(WxLoginDTO wxLoginDTO) throws Exception;

    AuthLoginRespVO loginNormal(WxLoginDTO wxLoginDTO) throws Exception;

    Boolean register(WxRegisterVo wxRegisterVo) throws Exception;

    Boolean forget(WxRegisterVo wxRegisterVo) throws Exception;

    String responseMsg(HttpServletRequest req) throws DocumentException, IOException;

    Long getTeantIdByAppid(String appId);

    Long wxQrcodeGetTenantId(String sceneStr);

    AuthLoginRespVO wxGzhLogin(String sceneStr) throws Exception;
}
